package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.domain.TravelComment;
import cn.wolfcode.luowowo.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    //获取全部
    List<TravelComment> list();
    //获取单个
    TravelComment selectOne(String id);
    //分页
    Page<TravelComment> query(TravelCommentQuery qo);
    //更新或者新增
    void save(TravelComment travelComment);
    //删除
    void delete(String id);

    //根据游记id查询对应的评论
    List<TravelComment> selectByTId(String travelId);

    void commentAdd(TravelComment comment);
}
